/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package boundaries;

import business.UserManager;
import entity.Event;
import java.io.Serializable;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;
import javax.inject.Named;


/**
 *
 * @author Alessandro
 */
@ManagedBean
@ViewScoped
public class CalendarBean implements Serializable {
    
    private List<Event> calendar;
    
    @EJB
    private UserManager um;
    
    @PostConstruct
    public void init(){
        System.out.println("");
        calendar=um.loadCalendar();
        
    }

    public List<Event> getCalendar() {
        return calendar;
    }

    public void setCalendar(List<Event> calendar) {
        this.calendar = calendar;
    }
    
    
    
}
